package com.qf.ssm.mapper;

import com.qf.ssm.entity.PropertyManage;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PropertyManageMapper {
    List<PropertyManage> selectAs(@Param("pmType") String pmType, @Param("as") String as);

    List<PropertyManage> selectName(@Param("pmType") String pmType, @Param("pmName") String pmName);

    List<PropertyManage> selectGroup(@Param("pmType") String pmType, @Param("pgId") int pgId);

    int update(@Param("updatePropertyManage") PropertyManage updatePropertyManage);

    List<PropertyManage> selectDefaultDisplay();

    int insert(PropertyManage insertPropertyManage);

    int delete(@Param("pmId") Integer pmId);

    int disable(@Param("pmId") Integer pmId);

    int enable(@Param("pmId") Integer pmId);

    PropertyManage selectPropertyAndGroup(@Param("pmId") int pmId);

    int batchDelete(@Param("pmIds") int[] pmIds);

    int batchDeleteList(@Param("pmIds") List<Integer> pmIds);

    int batchInsert(List<PropertyManage> propertyManages);

    int batchInsertList(@Param("propertyManages") List<PropertyManage> propertyManages);

}
